#include"tcpClient.hpp"

//  ./tcpClient svr_ip svr_port

static void Usage(std::string proc) {
	std::cout << "Usage :\t" << proc << "svr_ip    svr_port" << std::endl;
}

int main(int argc, char* argv[])
{
	if (argc != 3) {
		Usage(argv[0]);
		exit(1);
	}
	tcpClient* tc = new tcpClient(argv[1],atoi(argv[2]));

	tc->InitClient();
	tc->start();

	delete tc;
	return 0;
}